package com.duyi.demo.config;


import com.duyi.demo.component.MyLocalResolver;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.LocaleResolver;

/**
 * @author ctx
 * @date 2020/2/15
 * @description
 */
@Configuration
public class MyConfig {

    @Bean
    public LocaleResolver localeResolver(){
        return new MyLocalResolver();
    }


}
